package com.rainsoft.center.isec.stream.content.base;


import com.rainsoft.center.isec.stream.base.ABaseDataLoadToHBase;
import com.rainsoft.center.isec.stream.content.entity.BaseContentEntity;


/**
 * @Name com.rainsoft.center.isec.stream.content.controller.BaseContentDataLoad
 * @Description
 * @Author Elwyn
 * @Version 2017/11/21
 * @Copyright 上海云辰信息科技有限公司
 **/
public class BaseContentDataLoad<T extends BaseContentEntity> extends ABaseDataLoadToHBase<T> {

	public BaseContentDataLoad(long duration, Class<T> baseContentEntityClass) {
		super(duration, baseContentEntityClass);
	}

	@Override
	public String generateRowKey(T baseContentEntity) {
		return baseContentEntity.getCertificateCode() + "_" + baseContentEntity.getServiceCode() + "_" + baseContentEntity.getCaptime().getTime() / 1000;
	}


}
